# XML RPC test

require 'pp'
require 'xmlrpc/client'

uri = "http://localhost:8080/"


server = XMLRPC::Client.new2(uri)

puts "Vyber prikaz 1,2,3 (anebo neznamej)"
x = Integer(gets.chomp)

#param = {'a'=> 3, 'b' => 5}
#result = server.call("Funkce.sum", 3, 2);

#pp result

result = server.call("Funkce.zaradDoFronty", x);

pp result
